package com.study.object;

public class Person {

	private final String name;
	public Person(String name){
		this.name = name;
	}
	
	
	@Override
	public boolean equals(Object obj){
		if(obj == null){
			return false;
		}
		if(getClass() != obj.getClass()){
			return false;
		}
		return name.equals(((Person)obj).name);
	}
	
}
